<!DOCTYPE html>
<html>
<head>
{include file="Public:head"} 
</head>
<body>
	<div class="wrap">
		{include file="Public:header"} 
		<section class="section">
			<div class="step">
				<ul class="unstyled">
					<li class="on"><em>1</em>检测环境</li>
					<li class="current"><em>2</em>创建数据</li>
					<li><em>3</em>完成安装</li>
				</ul>
			</div>
			<form class="form-horizontal" action="{:url('index/step4')}" id="form" method="post">
				<input type="hidden" name="force" value="0" />
				<div class="server">
					<table width="100%">
						<tr>
							<td class="td1" width="100">数据库信息</td>
							<td class="td1" width="200">&nbsp;</td>
							<td class="td1">&nbsp;</td>
						</tr>
							<tr>
							<td class="text-left">数据库类型：</td>
							<td><input type="text"  name="db[]" id="input1" readonly="redonly" value="mysql"  class="form-control">
</td>
							<td>
							
							</td>
						</tr>
						<tr>
							<td class="text-left">数据库服务器：</td>
							<td><input type="text" name="db[]" id="input2" value="127.0.0.1" class="form-control"></td>
							<td>
								<div id="js-install-tip-dbhost">
									<span class="gray">数据库服务器地址，一般为localhost或127.0.0.1</span>
								</div>
							</td>
						</tr>
									<tr>
							<td class="text-left">数据库名：</td>
							<td><input type="text" name="db[]" id="input6" value="KenCMS" class="form-control"></td>
							<td></td>
						</tr>
						
						<tr>
							<td class="text-left">数据库用户名：</td>
							<td><input type="text" name="db[]" id="input4" value="root" class="form-control"></td>
							<td><div id="js-install-tip-dbuser"></div></td>
						</tr>
						<tr>
							<td class="text-left">数据库密码：</td>
							<td><input type="password" name="db[]" id="input5" value="" class="form-control" autoComplete="off" onBlur="TestDbPwd()"></td>
							<td></td>
						</tr>
						<tr>
							<td class="text-left">数据库端口：</td>
							<td><input type="text" name="db[]" id="input3" value="3306" class="form-control"></td>
							<td>
								<div id="js-install-tip-dbport">
									<span class="gray">数据库服务器端口，一般为3306</span>
								</div>
							</td>
						</tr>
						<tr>
							<td class="text-left">数据库表前缀：</td>
							<td><input type="text" name="db[]" id="input7" value="{:config('original_table_prefix')}" class="form-control"></td>
							<td>
								<div id="js-install-tip-dbprefix">
									<span class="gray">建议使用默认，同一数据库安装多个时需修改</span>
								</div>
							</td>
						</tr>
					</table>
					
					<table width="100%">
						<tr>
				
							<td class="td1" width="100">创始人信息</td>
							<td class="td1" width="200">&nbsp;</td>
							<td class="td1">&nbsp;</td>
						</tr>
						<tr>
							<td class="text-left">管理员帐号：</td>
							<td><input type="text" name="admin[]" id="input8" class="form-control"></td>
							<td></td>
						</tr>
						<tr>
							<td class="text-left">密码：</td>
							<td><input type="password" name="admin[]" id="input9" class="form-control" ></td>
							<td></td>
						</tr>
						<tr>
							<td class="text-left">重复密码：</td>
							<td><input type="password" name="admin[]" id="input10" class="form-control"></td>
							<td></td>
						</tr>
					
					</table>
					<div id="js-response-tips" style="display: none;"></div>
				</div>
				<div class="bottom text-center">
					<a href="{:url('index/step2')}" class="btn btn-primary">上一步</a>
					<button type="submit" class="btn btn-primary" onClick="Createinfo()">创建数据</button>
				</div>
			</form>
		</section>
	</div>
	{include file="Public:footer"} 
</body>
</html>